package com.lbssoft.gpsbd.model.vo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by nczc on 2018/9/3.
 */
public class SystemProperty {

    @NotNull(message = "数据库主机地址不能为空")
    @Size(min=8, message = "请输入正确的数据库主机地址")
    private String dbHost;

    @NotNull(message = "端口不能为空")
    private int dbPort;

    @NotNull(message = "数据库用户名不能为空")
    @Size(min=2, message = "请输入正确的数据库用户名")
    private String dbUserName;

    @NotNull(message = "数据库名不能为空")
    @Size(min=2, message = "请输入正确的数据库名")
    private String dbName;

    @NotNull(message = "密码不能为空")
    @Size(min=6, message = "请输入6位以上的数据库密码")
    private String dbPassword;
    private boolean createDataBase;
    private boolean initData;

    private String redisHost;
    private String redisPort;
    private String redisPassword;



    public String getDbHost() {
        return dbHost;
    }

    public void setDbHost(String dbHost) {
        this.dbHost = dbHost;
    }

    public int getDbPort() {
        return dbPort;
    }

    public void setDbPort(int dbPort) {
        this.dbPort = dbPort;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public String getDbUserName() {
        return dbUserName;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }

    public boolean isCreateDataBase() {
        return createDataBase;
    }

    public void setCreateDataBase(boolean createDataBase) {
        this.createDataBase = createDataBase;
    }

    public boolean isInitData() {
        return initData;
    }

    public void setInitData(boolean initData) {
        this.initData = initData;
    }

    public String getRedisHost() {
        return redisHost;
    }

    public void setRedisHost(String redisHost) {
        this.redisHost = redisHost;
    }

    public String getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(String redisPort) {
        this.redisPort = redisPort;
    }

    public String getRedisPassword() {
        return redisPassword;
    }

    public void setRedisPassword(String redisPassword) {
        this.redisPassword = redisPassword;
    }
}
